#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
import tatolib.ui.cmdline as cmdline
import os

class TestCmdline(unittest.TestCase):
    def test_new_objects(self):
        os.putenv(cmdline.ENVVAR_DBFILE, "tato_ut.db")
        args = [ 'tatocmd', 'list', 'tag']
        cmd = cmdline.Cmdline(args)
        cmd.run()

# vim:tw=78:et:sw=4
